<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page isELIgnored="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=gbk" />
    <title>易买网 - 首页</title>
    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/style.css" />
    <script type="text/javascript" src="${pageContext.request.contextPath}/scripts/function.js"></script>
</head>
<body>
<div id="header" class="wrap">
    <div id="logo"><img src="${pageContext.request.contextPath}/images/logo.gif" /></div>
    <div class="help">        <a href="${pageContext.request.contextPath}/product/addCar" class="shopping">购物车</a><a href="${pageContext.request.contextPath}/login/to_login">登录</a><a href="${pageContext.request.contextPath}/register/re">注册</a><a href="${pageContext.request.contextPath}/comment/front/list">留言</a></div>

    <div class="navbar">
        <ul class="clearfix">
            <li class="current"><a href="${pageContext.request.contextPath}/index/front">首页</a></li>
            <li><a href="#">图书</a></li>
            <li><a href="#">百货</a></li>
            <li><a href="#">品牌</a></li>
            <li><a href="#">促销</a></li>
        </ul>
    </div>
</div>
<div id="childNav">
    <div class="wrap">
        <ul class="clearfix">
            <li class="first"><a href="">音乐</a></li>
            <li><a href="">影视</a></li>
            <li><a href="">少儿</a></li>
            <li><a href="">动漫</a></li>
            <li><a href="">小说</a></li>
            <li><a href="">外语</a></li>
            <li><a href="">数码相机</a></li>
            <li><a href="">笔记本</a></li>
            <li class="last"><a href="">Investor Relations</a></li>
        </ul>
    </div>
</div>
<div id="main" class="wrap">
    <div class="lefter">
        <div class="box">
            <h2>商品分类</h2>
            <dl>
                <c:forEach items="${bigClassList}" var="bigClassList">
                    <dt><a href="${pageContext.request.contextPath}/index/likeList?inEpName=${inEpName}&parentId=${bigClassList.epcId}&likePage=${likeCurrentPage}">>${bigClassList.epcName}</a></dt>
                </c:forEach>
                <%--                <c:forEach items="${ListProductCategory}" var="smallClassList">--%>
                <div class="box">
                    <c:forEach items="${smallClassList}" var="smallClass">
                        <dd><a href="${pageContext.request.contextPath}/index/likeList?parentId=${smallClass.epcParentId}&inEpName=${smallClass.epcName}">${smallClass.epcName}</a></dd>
                    </c:forEach>
                </div>
                <%--                </c:forEach>--%>
            </dl>
        </div>
        <div class="spacer"></div>
        <div class="last-view">
            <h2>最近浏览</h2>
            <dl class="clearfix">
                <dt><img src="${pageContext.request.contextPath}/images/product/0_tiny.gif" /></dt>
                <dd><a href="">Audio-Technica ATH-EQ300M-SV</a></dd>
                <dt><img src="${pageContext.request.contextPath}/images/product/0_tiny.gif" /></dt>
                <dd><a href="">Audio-Technica ATH-EQ300M-SV</a></dd>
            </dl>
        </div>
    </div>
    <div class="main">
        <div class="price-off">
            <h2>商品列表</h2>
            <ul class="product clearfix">
                <c:forEach items="${likeList}" var="likeList">
                    <li>
                        <dl>
                            <dt><a href="${pageContext.request.contextPath}/index/productView?epId=${likeList.epId}&epName=${likeList.epName}&epDescription=${likeList.epDescription}&epPrice=${likeList.epPrice}&epStock=${likeList.epStock}&epFileName=${likeList.epFileName}&parentId=${likeList.epcId}" target="_blank"><img src="../images/product/${likeList.epFileName}" /></a></dt>
                            <dd class="title"><a href="${pageContext.request.contextPath}/index/productView?epId=${likeList.epId}&epName=${likeList.epName}&epDescription=${likeList.epDescription}&epPrice=${likeList.epPrice}&epStock=${likeList.epStock}&epFileName=${likeList.epFileName}&parentId=${likeList.epcId}" target="_blank">${likeList.epName}</a></dd>
                            <dd class="price">${likeList.epPrice}</dd>
                        </dl>
                    </li>
                </c:forEach>
            </ul>

            <div class="pager">
                <ul class="clearfix">
                    <li><a href="${pageContext.request.contextPath}/index/likeList?parentId=${parentId}&inEpName=${inEpName}&likePage=${likeCurrentPage>1? likeCurrentPage-1:1}">上一页</a></li>
                    <c:forEach var="i" begin="${likeCurrentPage>3?likeCurrentPage-3:1}" end="${(likeMaxPage-likeCurrentPage)>3?likeCurrentPage+3:likeMaxPage}" step="1">
                        <li <c:if test="${i==likeCurrentPage}"> class="current" </c:if>>
                            <a href="${pageContext.request.contextPath}/index/likeList?parentId=${parentId}&inEpName=${inEpName}&likePage=${i}">${i}</a>
                        </li>
                    </c:forEach>
                    <li><a href="${pageContext.request.contextPath}/index/likeList?parentId=${parentId}&inEpName=${inEpName}&likePage=${likeCurrentPage<likeMaxPage? likeCurrentPage+1:likeMaxPage}">下一页</a></li>
                    <li>共${likeMaxPage}页</li>
                </ul>
            </div>

        </div>
        <div class="side">
            <div class="spacer"></div>
            <div class="news-list">
                <h4>新闻动态</h4>
                <ul>
                    <li><a href="" target="_blank">抢钱啦</a></li>
                    <li><a href="" target="_blank">抢钱啦</a></li>
                    <li><a href="" target="_blank">抢钱啦</a></li>
                    <li><a href="" target="_blank">抢钱啦</a></li>
                    <li><a href="" target="_blank">抢钱啦</a></li>
                    <li><a href="" target="_blank">抢钱啦</a></li>
                    <li><a href="" target="_blank">抢钱啦</a></li>
                </ul>

            </div>
        </div>
    </div>
    <div class="clear"></div>
</div>
<div id="footer">
    Copyright &copy; 2016 湖南软测信息技术有限公司 Alights Reserved. 湘ICP证1001号
</div>
</body>
</html>

